package thread2;

public class Test {
	public static void main(String[] args) {
		MyRunable r = new MyRunable();
		
		Thread t1 = new Thread(r);
		System.out.println("Thread 1: " + t1.getId());
		
		Thread t2 = new Thread(r);
		System.out.println("Thread 2: " + t2.getId());
		
		Thread t3 = new Thread(r);
		System.out.println("Thread 3: " + t3.getId());
		
		Thread t4 = new Thread(r);
		System.out.println("Thread 4: " + t4.getId());
		
		Thread t5 = new Thread(r);
		System.out.println("Thread 5: " + t5.getId());
		
		//
		t1.start();
		t2.start();
		t3.start();
		t4.start();
		t5.start();
	}

}
